package org.bees.cms.web.action.clause;

import javax.annotation.Resource;

import org.bees.cms.core.clause.Calculation;
import org.bees.cms.service.Service;
import org.bees.cms.service.clause.CalculationService;
import org.bees.cms.web.action.EditActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Scope("prototype")
@Controller
public class CalculationEditAction extends EditActionSupport<Calculation> {
	@Resource
	private CalculationService calculationServiceBean;

	@Override
	public Service<Calculation> service() {
		return calculationServiceBean;
	}

	@Override
	public Calculation getDomain() {
		return domain;
	}

	@Override
	public void setDomain(Calculation domain) {
		this.domain = domain;
	}
}
